# Franklin: "module swap PrgEnv-pgi PrgEnv-cray"

#CC = CC -O3
#UPCC = cc -h upc

CC = g++ -O3
UPCC = upcc -pthreads

TARGETS=serial parallel opt

all: $(TARGETS)

serial: serial.cpp
	$(CC) -o $@ $^

parallel: parallel.upc
	$(UPCC) -o $@ $^

opt: opt.upc
	$(UPCC) -o $@ $^

clean:
	rm -f *.o $(TARGETS)
